

$(".four_classes ul li").click(function(){
	$(this).css({"border-bottom":"3px solid #29a008"}).siblings().css({"border-bottom":"none"});

})

//按钮延迟解决方案
window.onload = function() {
	/* 解决click延迟   */
	window.addEventListener('load', function(){
		FastClick.attach(document.body);
	}, false);
	
	var oSubState = document.getElementsByClassName("subState");
	var oCheck = document.getElementsByClassName("check");
	var oLabsub = document.getElementsByClassName("labsub");
	for (var i = 0; i < oCheck.length; i++) {
		oCheck[i].index = i;
		oCheck[i].onclick = function() {
			if(!this.checked) {
				$(".subState").eq(this.index).addClass("subBg");
				$(".labsub").eq(this.index).addClass("labmove");
			}else {
				$(".subState").eq(this.index).removeClass("subBg");
				$(".labsub").eq(this.index).removeClass("labmove");
			}
		}
	}
}




    
  

